package cn.stylefeng.guns.modular.business.frequency.ledgerrecords.controller;

import cn.stylefeng.guns.core.annotion.BusinessLog;
import cn.stylefeng.guns.core.enums.LogAnnotionOpTypeEnum;
import cn.stylefeng.guns.core.pojo.page.PageResult;
import cn.stylefeng.guns.core.pojo.response.ResponseData;
import cn.stylefeng.guns.core.pojo.response.SuccessResponseData;
import cn.stylefeng.guns.modular.business.frequency.financetransport.model.param.FinanceTransportParam;
import cn.stylefeng.guns.modular.business.frequency.ledgerrecords.controller.dto.LedgerRecordsDTO;
import cn.stylefeng.guns.modular.business.frequency.ledgerrecords.controller.vo.PageVO;
import cn.stylefeng.guns.modular.business.frequency.ledgerrecords.service.LedgerRecordsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 分账记录
 */
@RestController
public class LedgerRecordsController {

    @Autowired
    private LedgerRecordsService ledgerRecordsService;

    /**
     * 条件分页查询分账记录
     */
    @GetMapping("/ledgerRecords/page")
    @BusinessLog(title = "条件分页查询分账记录", opType = LogAnnotionOpTypeEnum.QUERY)
    public ResponseData page(PageVO pageVO) {
        return new SuccessResponseData(ledgerRecordsService.page(pageVO));
    }
}
